package course.p7_binaryTree;

import lombok.Data;

@Data
public class Node {

    //用于存储节点数据
    public Integer data;
    //左孩子节点引用
    public Node left;
    //右孩子节点引用
    public Node right;

    /**
     * 树的高度,平衡二叉搜索树属性
     */
    private int height;

    /**
     * true: red
     * false: block
     */
    public boolean color;
    public Node parent;


    public Node(){
    }

    public Node(int data){
        this.data = data;
    }

}
